<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style type="text/css">
        .todo {
            width: 400px;
            margin: 50px auto;
            border: 1px solid #f5f5f5;
            padding: 15px;
            border-radius: 5px;
        }

        .input-group {
            position: relative;
            height:38px;
            line-height:38px;
        }

        input[type="text"] {
            border: none;
            outline: none;
            border: 1px solid #ddd;
            padding: 9px 15px;
            color: #333;
            border-radius: 3px;
            display: block;
            width: 100%;
            height: 100%;
            box-sizing: border-box;
        }

        .add-btn {
            outline: none;
            border: none;
            padding: 8px 20px;
            letter-spacing: 2px;
            color: #fff;
            box-sizing: border-box;
            background: #3eb4ea;
            border-radius: 3px;
            position: absolute;
            top: 0;
            right: 0;
            height: 100%;
        }

        .todo-list {
            margin-top: 15px;
        }

        .todo-item {
            background: #eafbfd;
            padding: 10px;
            border: 1px dashed #ddd;
            margin-bottom: 10px;
            display: flex;
            justify-content: space-between;
            border-radius: 3px;
        }

        .todo-item:last-child {
            margin: 0;
        }

        .todo-item span {
            color: #666;
            display: inline-block;
            padding: 0 10px;
        }

        .todo-item button {
            border: none;
            background: #ff9800;
            color: #eee;
        }
    </style>
</head>

<body>
    <div class="todo">
        <div class="input-group">
            <input type="text" class="todo-input" placeholder="请输入待办" />
            <button type="button" class="add-btn">添加</button>
        </div>
        <div class="todo-list"></div>
    </div>
    <script type="module" src="./src/app.ts"></script>
</body>

</html>